﻿@model InfoLogic.Models.Business

@{
    ViewBag.Title = "Business";
}

<h2>Business Details</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
         
        <legend></legend>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.BusinessName)*@
            Business Name
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BusinessName)
            @Html.ValidationMessageFor(model => model.BusinessName)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.BusinessTypeId, "BusinessType")*@
            Business Type
        </div>
        <div class="editor-field">
            @Html.DropDownList("BusinessTypeId", String.Empty)
            @Html.ValidationMessageFor(model => model.BusinessTypeId)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.BusinessTypeId, "BusinessType")*@
            Business Address
        </div>
        <div class="editor-field">
            @Html.DropDownList("BusinessAddressId", String.Empty)
            @Html.ValidationMessageFor(model => model.BusinessAddressId)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.StartingDate)*@
            Starting Date
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.StartingDate)
            @Html.ValidationMessageFor(model => model.StartingDate)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
        <p>
            @Html.ActionLink("Next Step", "Create", "Users")
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
